package com.ytc.mapper;

import com.ytc.model.Type;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 25645
* @description 针对表【my_type】的数据库操作Mapper
* @createDate 2023-01-08 11:52:43
* @Entity com.ytc.model.Type
*/
public interface TypeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);

    //柴晓颖：去新增书籍时查询书籍类型
    List<Type> queryBookType();

    //柴晓颖：查询小类型
    List<Type> getSmallType(Integer pid);

    //张阔：查询频道
    List<Type> queryBigTypeList();

    //张阔：查询类型
    List<Type> querySmallTypeList(@Param("pid") Integer pid);

}
